package com.dianqiu.common.bean;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * DqUserFollowClubsId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class DqUserFollowClubsIdTO implements java.io.Serializable {

	// Fields

	private String userId;
	private Integer clbId;


	@Column(name = "USER_ID", nullable = false, length = 13)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "CLB_ID", nullable = false)
	public Integer getClbId() {
		return this.clbId;
	}

	public void setClbId(Integer clbId) {
		this.clbId = clbId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof DqUserFollowClubsIdTO))
			return false;
		DqUserFollowClubsIdTO castOther = (DqUserFollowClubsIdTO) other;

		return ((this.getUserId() == castOther.getUserId()) || (this
				.getUserId() != null
				&& castOther.getUserId() != null && this.getUserId().equals(
				castOther.getUserId())))
				&& ((this.getClbId() == castOther.getClbId()) || (this
						.getClbId() != null
						&& castOther.getClbId() != null && this.getClbId()
						.equals(castOther.getClbId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37 * result
				+ (getClbId() == null ? 0 : this.getClbId().hashCode());
		return result;
	}

}